package com.kata.chapter2;

import com.kata.chapter2.BMW;
import com.kata.chapter2.BenZ;
import com.kata.chapter2.Car;

/**
 * Created by Solidsnake on 2014/11/16.
 */
public class BMWFactory implements FactoryMethod{

    public Car getCar() {
        BMW bmw = new BMW();
        bmw.setName("宝马牌小汽车");
        bmw.setDrive("宝马动力足!");
        return bmw;
    }
}
